import request from '@/utils/request'

// 确保路径正确，应该以 /api 开头
export function textByOcr(data) {
  return request({
    url: '/tool/media/textByOcr',  // 确保路径正确
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data
  })
}